<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="script/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            // alert($(":checkbox:first").attr("name")) //获取
            $("<h1>标题</h1>").appendTO('div')
        })

    </script>
</head>
<body>
    <br/>
    多选：
    <input name="checkbox" type="checkbox" value="checkbox1"/>checkbox1
    <input name="checkbox" type="checkbox" value="checkbox2"/>checkbox2
    <br>
    <div>123</div>
</body>
</html>